package customerEnter.Frame.JDBCDao.SqlProcessing.SqlServer;

import customerEnter.Frame.DaoDataTransmission.DaoFrameDMLBaseTransmission;
import customerEnter.Frame.DaoDataTransmission.DaoFramePameTransmission;
import customerEnter.Frame.DaoDataTransmission.PagingParametersResult;
import customerEnter.Frame.JDBCDao.Interface.DaoFrameSqlProcessingInterface;
import customerEnter.Frame.Utils.Log4j;

/**
 * 类描述：處理 修改的語句
 * 
 * 类名称：DaoFrameSqlProcessingInsertImpl
 * 
 * 创建人：dy
 * 
 * 创建时间：2017-7-12 下午3:50:39
 * 
 */
public class DaoFrameSqlProcessingDeleteImpl implements DaoFrameSqlProcessingInterface<String> {

	@SuppressWarnings("rawtypes")
	@Override
	public <T, K> String SqlProcessing(DaoFrameDMLBaseTransmission daoFrameDMLBaseTransmission,
			DaoFramePameTransmission<T, K> daoFramePameTransmission) {
		try {
			daoFramePameTransmission.SQL = daoFrameDMLBaseTransmission.getDataBase() + " delete "
					+ daoFrameDMLBaseTransmission.getTableName() + " " + daoFrameDMLBaseTransmission.getWhere();
		} catch (Exception e) {
			Log4j.setLog4j(getClass());
			Log4j.Log4JOutError(e.getMessage());
		}
		daoFramePameTransmission.setPagingParametersResult(new PagingParametersResult());
		return daoFramePameTransmission.SQL;
	}
}
